package cn.bocai.pc.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.bocai.pc.dao.VariableMapper;
import cn.bocai.pc.model.Variable;
import cn.bocai.pc.service.VariableService;

@Service
public class VariableServiceImpl implements VariableService {
	@Autowired
	private  VariableMapper variableDao;
	
	public int insert(Variable record) {
		return variableDao.insert(record);
	}
	//根据条件查询出需要的数据
    @Override
    public String selectVariable(String record){
    	return variableDao.selectVariable(record);
    }
    
  //根据条件查询出需返回一个对象
  	@Override
  	public Variable selectYear(String record){
  		return variableDao.selectYear(record);	
  	}
  //修改值
  	@Override
	public int updateByPrimaryKeySelective(Variable record) {
  		return variableDao.updateByPrimaryKeySelective(record);	
	}
	@Override
	public int deleteByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insertSelective(Variable record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Variable selectByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int updateByPrimaryKey(Variable record) {
		// TODO Auto-generated method stub
		return 0;
	}
}
